
 /**
 * BaseAction.java.java.
 * User: BrianChen Date: 2012-6-5 下午03:29:05
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-5 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-5 下午03:29:05
 * @version 1.0
 * @see
 * 
 */
@SuppressWarnings("serial")
public abstract class BaseStrutsAction extends ActionSupport implements ServletRequestAware{
	protected static final Log logger = LogFactory.getLog(BaseStrutsAction.class);
	protected HttpServletRequest request = null;
	private String message = null;
	
	@Override
	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}
	
	/**
	 * 动作执行函数
	 */
	public abstract String execute() throws Exception ;

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}

